package com.hd.trans.network.bean

import com.hd.trans.TranslationInterior
import com.hd.trans.network.ParamUtils
import com.hd.trans.network.PreferenceMgr
import com.hd.trans.utils.DeviceUtil
import okhttp3.RequestBody

data class RCUploadParBean(
    var tasktype: String = TaskType.translate,
    var limitsize: Int = 51200,
    val filename: String,
    var filecount: Int = 1,
    var isshare: Int = 0,
    var timestamp: Long = (PreferenceMgr.getInstance().serverTimeStamp) / 1000,
    var softversion: String = TranslationInterior.getAppVersionName(),
    var softname: String = TranslationInterior.getAppName(),
    var machineid: String = DeviceUtil.getDeviceId(),
    var productid: Int = TranslationInterior.getProductIdInteger(),
    var fileversion: String? = null,
    var outputfileextension: String? = null,
    var pagerange: String? = null,
    var fileopenpwd: List<String> = arrayListOf(),
    var usertoken: String? = null, //用户token
    var parainfo: String? = null,
    var picturequality: String? = null,
    var fanyi_from: String? = null,
    var fanyi_to: String? = null,
    var convertcore: String? = null,//语音转文字核心：传“1”=阿里；“2”=腾讯；“3”=思必驰；“4”=标贝
){
    fun toRequestBody(): RequestBody {
        return ParamUtils.toRequestBody(this)
    }

}
